package com.erp.gather.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.core.web.oldDomain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 美元汇率业务对象 erp_usd_exchange
 *
 * @author erp
 * @date 2023-05-06
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ErpUsdExchangeBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 货币名称
     */
    @NotBlank(message = "货币名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 现汇买入价
     */
    @NotNull(message = "现汇买入价不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal fBuyPri;

    /**
     * 现钞买入价
     */
    @NotNull(message = "现钞买入价不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal mBuyPri;

    /**
     * 现汇卖出价
     */
    @NotNull(message = "现汇卖出价不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal fSellPri;

    /**
     * 现钞卖出价
     */
    @NotNull(message = "现钞卖出价不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal mSellPri;

    /**
     * 银行折算价/中间价
     */
    @NotNull(message = "银行折算价/中间价不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal bankConversionPri;

    /**
     * 发布日期
     */
    @NotBlank(message = "发布日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private String date;

    /**
     * 发布时间
     */
    @NotBlank(message = "发布时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private String time;


}
